﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TopicTree.aspx.cs" Inherits="Manage_TopicTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择栏目</title>
    <style type="text/css">
        div.Tree 
        {
            padding: 10px;
        }

        div.Tree a
        {
            text-decoration: none;
            color: #000000;
        }

        div.Tree a.selected
        {
            color: #0000ff;
        }
    </style>
    <script src="../js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var id = 'null';
        var name = 'null';

        $(document).ready(function () {
            window.returnValue = 'null|null';

            $('DIV.Tree a').click(function () {
                $('DIV.Tree a.selected').removeClass('selected');
                $(this).addClass('selected');

                id = $(this).attr('topicid');
                name = $(this).text();
            });

            $('input#CloseWindow').click(function () {
                window.returnValue = id + '|' + name;
                window.close();

                return false;
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 270px">
        <%=TreeText %>
    </div>
    <div style="text-align: center">
        <asp:Button ID="CloseWindow" runat="server" ClientIDMode="Static" Text="确定" />
    </div>
    </form>
</body>
</html>
